package com.cls.business.service;

import com.cls.business.entity.BlackList;

import com.cls.common.entity.QueryRequest;
import com.github.pagehelper.PageInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 黑名单 Service接口
 *
 * @author slx
 * @date 2020-11-23 14:56:14
 */
public interface IBlackListService extends IService<BlackList> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param blackList blackList
     * @return PageInfo<BlackList>
     */
    PageInfo<BlackList> findBlackLists(QueryRequest request, BlackList blackList);

    /**
     * 查询（所有）
     *
     * @param blackList blackList
     * @return List<BlackList>
     */
    List<BlackList> findBlackLists(BlackList blackList);

    /**
     * 新增
     *
     * @param blackList blackList
     */
    void createBlackList(BlackList blackList);

    /**
     * 修改
     *
     * @param blackList blackList
     */
    void updateBlackList(BlackList blackList);

    /**
     * 删除
     *
     * @param ids ids
     */
    void deleteBlackLists(String[] ids);

    PageInfo<BlackList> findBlackListsPage(QueryRequest request, BlackList blackList);

    BlackList getForId(Long blackListId);

    BlackList findByIdentity(String identity);
}
